package hcn.protocol.ods.inpatient;

import hcn.protocol.registration.MsgHeader;
import lombok.ToString;

import javax.xml.bind.annotation.*;
import java.util.List;

@ToString
@XmlRootElement(name = "BSXml")
public class BedInfoDetailsHisReq {
    private MsgHeader msgHeader;
    private MsgBody msgBody;

    @XmlElement(name = "MsgHeader")
    public MsgHeader getMsgHeader() {
        return msgHeader;
    }

    public void setMsgHeader(MsgHeader msgHeader) {
        this.msgHeader = msgHeader;
    }

    @XmlElement(name = "MsgBody")
    public MsgBody getMsgBody() {
        return msgBody;
    }

    public void setMsgBody(MsgBody msgBody) {
        this.msgBody = msgBody;
    }

    @XmlAccessorType(XmlAccessType.FIELD)
    public static class MsgBody {
        private String Status;
        private String Code;
        private String Detail;
        private Data Data;

        public String getStatus() {
            return Status;
        }

        public void setStatus(String status) {
            Status = status;
        }

        public String getCode() {
            return Code;
        }

        public void setCode(String code) {
            Code = code;
        }

        public String getDetail() {
            return Detail;
        }

        public void setDetail(String detail) {
            Detail = detail;
        }

        public Data getData() {
            return Data;
        }

        public void setData(Data data) {
            Data = data;
        }

        @ToString
        public static class Data {
            private List<BedInfo> BedInfo;

            @XmlElementWrapper(name = "BedInfos")
            @XmlElement(name = "BedInfo")
            public List<MsgBody.Data.BedInfo> getBedInfo() {
                return BedInfo;
            }

            public void setBedInfo(List<MsgBody.Data.BedInfo> bedInfo) {
                BedInfo = bedInfo;
            }

                @ToString
                public static class BedInfo {
                    private String VisitOrganization; //医院ID，医院系统身份标识
                    private String VisitOrganizationName;//医院名称
                    private String WardAreaCode;//病区代码
                    private String WardAreaName;//病区名称
                    private String EmptyBedNumber;//空床总数
                    private String TotalBedNumber;//总床数
                    private String SourcePatientId;//患者在医院的唯一识别号
                    @XmlElement(name = "VisitOrganization")
                    public String getVisitOrganization() {
                        return VisitOrganization;
                    }

                    public void setVisitOrganization(String visitOrganization) {
                        VisitOrganization = visitOrganization;
                    }
                    @XmlElement(name = "VisitOrganizationName")
                    public String getVisitOrganizationName() {
                        return VisitOrganizationName;
                    }

                    public void setVisitOrganizationName(String visitOrganizationName) {
                        VisitOrganizationName = visitOrganizationName;
                    }
                    @XmlElement(name = "WardAreaCode")
                    public String getWardAreaCode() {
                        return WardAreaCode;
                    }

                    public void setWardAreaCode(String wardAreaCode) {
                        WardAreaCode = wardAreaCode;
                    }
                    @XmlElement(name = "WardAreaName")
                    public String getWardAreaName() {
                        return WardAreaName;
                    }

                    public void setWardAreaName(String wardAreaName) {
                        WardAreaName = wardAreaName;
                    }
                    @XmlElement(name = "EmptyBedNumber")
                    public String getEmptyBedNumber() {
                        return EmptyBedNumber;
                    }

                    public void setEmptyBedNumber(String emptyBedNumber) {
                        EmptyBedNumber = emptyBedNumber;
                    }
                    @XmlElement(name = "TotalBedNumber")
                    public String getTotalBedNumber() {
                        return TotalBedNumber;
                    }

                    public void setTotalBedNumber(String totalBedNumber) {
                        TotalBedNumber = totalBedNumber;
                    }
                    @XmlElement(name = "SourcePatientId")
                    public String getSourcePatientId() {
                        return SourcePatientId;
                    }

                    public void setSourcePatientId(String sourcePatientId) {
                        SourcePatientId = sourcePatientId;
                    }

                    /*根据机构Id和病区code查询详情列表*/
                    private String SickbedId;//病床号
                    private String WardAreaRoom;//房间号
                    private String DeptName;//科室名称
                    private String BedType;//床位类型
                    private String Limit;//限制
                    private String BedFee;//床位费
                    private String DoctorName;//主治医师
                    private String ResponsibleNurseCode;//责任护士编码
                    private String ResponsibleNurseName;//责任护士
                    private String HospizationId;//住院号码
                    private String Name;//患者姓名
                    private String ClinicalDischargeDate;//临床出院日期
                    private String Statu;//床位状态

                    @XmlElement(name = "SickbedId")
                    public String getSickbedId() {
                        return SickbedId;
                    }

                    public void setSickbedId(String sickbedId) {
                        SickbedId = sickbedId;
                    }
                    @XmlElement(name = "WardAreaRoom")
                    public String getWardAreaRoom() {
                        return WardAreaRoom;
                    }

                    public void setWardAreaRoom(String wardAreaRoom) {
                        WardAreaRoom = wardAreaRoom;
                    }
                    @XmlElement(name = "DeptName")
                    public String getDeptName() {
                        return DeptName;
                    }

                    public void setDeptName(String deptName) {
                        DeptName = deptName;
                    }
                    @XmlElement(name = "BedType")
                    public String getBedType() {
                        return BedType;
                    }

                    public void setBedType(String bedType) {
                        BedType = bedType;
                    }
                    @XmlElement(name = "Limit")
                    public String getLimit() {
                        return Limit;
                    }

                    public void setLimit(String limit) {
                        Limit = limit;
                    }
                    @XmlElement(name = "BedFee")
                    public String getBedFee() {
                        return BedFee;
                    }

                    public void setBedFee(String bedFee) {
                        BedFee = bedFee;
                    }
                    @XmlElement(name = "DoctorName")
                    public String getDoctorName() {
                        return DoctorName;
                    }

                    public void setDoctorName(String doctorName) {
                        DoctorName = doctorName;
                    }
                    @XmlElement(name = "ResponsibleNurseCode")
                    public String getResponsibleNurseCode() {
                        return ResponsibleNurseCode;
                    }

                    public void setResponsibleNurseCode(String responsibleNurseCode) {
                        ResponsibleNurseCode = responsibleNurseCode;
                    }
                    @XmlElement(name = "ResponsibleNurseName")
                    public String getResponsibleNurseName() {
                        return ResponsibleNurseName;
                    }

                    public void setResponsibleNurseName(String responsibleNurseName) {
                        ResponsibleNurseName = responsibleNurseName;
                    }
                    @XmlElement(name = "HospizationId")
                    public String getHospizationId() {
                        return HospizationId;
                    }

                    public void setHospizationId(String HospizationId) {
                        this.HospizationId = HospizationId;
                    }
                    @XmlElement(name = "Name")
                    public String getName() {
                        return Name;
                    }

                    public void setName(String name) {
                        Name = name;
                    }
                    @XmlElement(name = "ClinicalDischargeDate")
                    public String getClinicalDischargeDate() {
                        return ClinicalDischargeDate;
                    }

                    public void setClinicalDischargeDate(String clinicalDischargeDate) {
                        ClinicalDischargeDate = clinicalDischargeDate;
                    }
                    @XmlElement(name = "Statu")
                    public String getStatu() {
                        return Statu;
                    }

                    public void setStatu(String statu) {
                        Statu = statu;
                    }
                }
                }
            }
            }


